package cn.com.taurus.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * @ClassName Diary
 * @Description TODO
 * @Author czh
 * @Date 2021年07月27日 14:25:46
 * @Version 1.0
 */
public class Diary {
    private String id;
    private Integer aId;//用户id 操作人ID
    private String aName;//用户名称 关联admin_user
    private String loginIp;//登录ip
    private String operation;//操作内容
    private Integer type;//操作类型(0登录、1查询、2修改、3删除、新增)
    private String url ; // 操作的url
    private String createTime;//操作时间

    public Diary() {
    }

    public Diary(Integer aId, String aName, Integer type) {
        this.aId = aId;
        this.aName = aName;
        this.type = type;
    }

    public Diary(String id, Integer aId, String aName, String loginIp, String operation, Integer type, String url, String createTime) {
        this.id = id;
        this.aId = aId;
        this.aName = aName;
        this.loginIp = loginIp;
        this.operation = operation;
        this.type = type;
        this.url = url;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Diary{" +
                "id='" + id + '\'' +
                ", aId=" + aId +
                ", aName='" + aName + '\'' +
                ", loginIp='" + loginIp + '\'' +
                ", operation='" + operation + '\'' +
                ", type=" + type +
                ", url='" + url + '\'' +
                ", createTime='" + createTime + '\'' +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getaId() {
        return aId;
    }

    public void setaId(Integer aId) {
        this.aId = aId;
    }

    public String getaName() {
        return aName;
    }

    public void setaName(String aName) {
        this.aName = aName;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public void setLoginIp(String loginIp) {
        this.loginIp = loginIp;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
}
